<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>

<#include "/common/pagerForm.html">

<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
	<div class="pageHeader">
		<div class="searchBar defect" >
			<ul class="searchContent">
            	<li>
            		<label style="width: 120px;"><@label key="eventCode.C,colon">编号</@label></label> 
            		<input type="text" class="textInput" name="eventCode" value="${condition.eventCode!''}" />
            	</li>
            	<li>
            		<label style="width: 120px;"><@label key="eventText.C,colon">描述</@label></label> 
            		<input type="text" class="textInput" name="eventText" value="${condition.eventText!''}" />
            	</li>
				<li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
			</ul>
		</div>
	</div>
</form>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
            <@buttonRight menuCode="ANDONEVENT_ADD" labelKey="add.B" defalutName="新增">
            <li>
            	<a class="add" target="dialog" mask="true" width="650" height="400" 
            	href="${rc.getContextPath()}/manage/andonEvent/add?navTabId=${navTabId!''}" 
            	rel="adddefect" title="<@label key='add.B,andonEvent.C'>新增ANDON事件</@label>">
            		<span><@label key="add.B">新增</@label></span>
            	</a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="ANDONEVENT_EDIT" labelKey="edit.B" defalutName="编辑">
            <li>
            	<a class="edit" target="dialog" mask="true" width="650" height="400" 
            	href="${rc.getContextPath()}/manage/andonEvent/modify?code={andonEvent_code}&navTabId=${navTabId!''}" 
            	rel="editdefect"  title="<@label key='edit.B,andonEvent.C'>编辑ANDON事件</@label>">
            		<span><@label key="edit.B">编辑</@label></span>
            	</a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="ANDONEVENT_VIEW" labelKey="view.B" defalutName="详情">
            <li>
            	<a class="icon" target="dialog" mask="true" width="650" height="400" 
            	href="${rc.getContextPath()}/manage/andonEvent/view?code={andonEvent_code}&navTabId=${navTabId!''}" 
            	rel="viewdefect" title="<@label key='andonEvent.C,detail.C'>ANDON事件详情</@label>">
            		<span><@label key="view.B">详情</@label></span>
            	</a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="ANDONEVENT_DEl" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" 
            	href="${rc.getContextPath()}/manage/andonEvent/delete?navTabId=${navTabId!''}" 
            	postType="string" rel="codes" callback="batchjobAjaxDone"
                title="<@label key='confirmDeleteAndonEvent.M'>确认要删除选择的事件？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="135" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="codes" class="checkboxCtrl"></th>
                <th width="80"><@label key="eventCode.C">编号</@label></th>
                <th width="100"><@label key="eventText.C">描述</@label></th>
                <th width="80"><@label key="createUser.C">创建人</@label></th>
                <th width="100"><@label key="createDateTime.C">创建时间</@label></th>
                <th width="80"><@label key="modifyUser.C">修改人</@label></th>
                <th width="100"><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as andonEvent>
            <tr target="andonEvent_code" rel="${andonEvent.eventCode!''}">
                <td><input name="codes" value="${andonEvent.eventCode!''}" type="checkbox"></td>
                <td>${andonEvent.eventCode!''}</td>
                <td>${andonEvent.eventText!''}</td>
                <td>${andonEvent.createUser!''}</td>
                <td>${andonEvent.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${andonEvent.modifyUser!''}</td>
                <td>${andonEvent.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
	</table>
    <#include "/common/panelBar.html">
</div>